home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3c / bstring.z / bstring
Text File  |  1998-10-20  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4. BBBBSSSSTTTTRRRRIIIINNNNGGGG((((3333CCCC))))                                                        BBBBSSSSTTTTRRRRIIIINNNNGGGG((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      bcopy, bcmp, blkclr, bzero, ffs - bit and byte string operations
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttrrrriiiinnnnggggssss....hhhh>>>>
  13.  
  14.      vvvvooooiiiidddd bbbbccccooooppppyyyy((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****ssssrrrrcccc,,,, vvvvooooiiiidddd ****ddddsssstttt,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
  15.  
  16.      iiiinnnntttt bbbbccccmmmmpppp((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbb1111,,,, ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbb2222,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
  17.  
  18.      vvvvooooiiiidddd bbbbzzzzeeeerrrroooo((((vvvvooooiiiidddd ****bbbb,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
  19.  
  20.      vvvvooooiiiidddd bbbbllllkkkkccccllllrrrr((((vvvvooooiiiidddd ****bbbb,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
  21.  
  22.      iiiinnnntttt ffffffffssss((((uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt iiii))));;;;
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      The functions _b_c_o_p_y, _b_c_m_p, and _b_z_e_r_o operate on variable length strings
  26.      of bytes.  They do not check for null bytes as the routines in _s_t_r_i_n_g(3)
  27.      do.
  28.  
  29.      _b_c_o_p_y copies _l_e_n_g_t_h bytes from string _s_r_c to the string _d_s_t.
  30.  
  31.      _b_c_m_p compares byte string _b_1 against byte string _b_2, returning zero if
  32.      they are identical, non-zero otherwise.  Both strings are assumed to be
  33.      _l_e_n_g_t_h bytes long.
  34.  
  35.      _b_z_e_r_o and _b_l_k_c_l_r place _l_e_n_g_t_h zero bytes in the string _b.
  36.  
  37.      _f_f_s finds the first bit set in the argument passed it and returns the
  38.      index of that bit.  Bits are numbered starting at 1.  A return value of 0
  39.      indicates the value passed is zero.
  40.  
  41. NNNNOOOOTTTTEEEE
  42.      The use of overlapping buffers with _b_c_o_p_y is not guaranteed to work.  Use
  43.      the _m_e_m_m_o_v_e(3C) function if the buffers might overlap.
  44.  
  45. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.      memory(3c)
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.